package com.plant.tool;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class NowTimetool {
	public String nowdate(){
		SimpleDateFormat sim=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Calendar c = Calendar.getInstance();  
	    c.add(Calendar.DATE, - 0);
	    Date monday = c.getTime();
	    String preMonday = sim.format(monday);
	    return preMonday;	
	}
}

